package com.neoCalf.neoCommon.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


/**
 * Description 联系人
 * date 2024-09-01 17:43:42
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user_contact")
public class UserContact implements Serializable {
    /**
     * 用户ID
     */
    @TableId(value = "user_id")
    private String userId;
    /**
     * 联系人ID或群组ID
     */
    private String contactId;
    /**
     * 联系人类型 0:好友 1:群组 2:机器人 3:系统消息
     */
    private Integer contactType;
    /**
     * 创建时间
     */
    private Long createTime;
    /**
     * 状态 0:非好友 1:好友 2:已删除好友 3:被好友删除 4:已拉黑好友 5:被好友拉黑
     */
    private Integer status;
    /**
     * 最后更新时间
     */
    private Long lastUpdateTime;

    @TableField(exist = false)
    private String contactName;
    @TableField(exist = false)
    private String welcomeMessage;
    @TableField(exist = false)
    private String sex;
    @TableField(exist = false)
    private Integer toStatus;

    public UserContact(String userId, String contactId, Integer contactType, Long createTime, Integer status, Long lastUpdateTime) {
        this.userId = userId;
        this.contactId = contactId;
        this.contactType = contactType;
        this.createTime = createTime;
        this.status = status;
        this.lastUpdateTime = lastUpdateTime;
    }
}